//
//  movieRank.m
//  项目一
//
//  Created by nick on 15/7/20.
//  Copyright (c) 2015年 nick. All rights reserved.
//

#import "movieRank.h"

@implementation movieRank
- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    if ([key isEqualToString:@"rating"]) {
        NSDictionary *dic = value;
        _average = [[dic objectForKey:@"average"]floatValue];
    }
}
@end
